﻿@model List<IntroEntityFramework.Model.Appointment>
<br />

<table class="table table-bordered">
    <thead>
        <tr>
            <th>Description</th>
            <th>Who With</th>
            <th>Date Start</th>
            <th>Date End</th>
            <th>Details</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var a in Model)
        {
            <tr>
                <td>@a.Description</td>
                <td>@a.UserWith</td>
                <td>@a.TimeStart</td>
                <td>@a.TimeEnd</td>
                <td>@Html.ActionLink("Details", "Details", new { id = a.AppointmentID }, new { @class = "btn btn-default" })</td>
            </tr>
        }
    </tbody>
</table>

@Html.ActionLink("Add New Appointment", "AddAppointment", null, new { @class = "btn btn-default" })